import Map from "esri/Map";
import SceneView from "esri/views/SceneView";
import Color from "esri/Color";
import MyTileLayer from "./MyTileLayer";

const myTileLayer = new MyTileLayer({
    urlTemplate: "https://stamen-tiles.a.ssl.fastly.net/toner/{z}/{x}/{y}.png",
    tint: new Color("#38f"), // 蓝色
});

const map = new Map({
    layers: [myTileLayer]
});

const view = new SceneView({
    container: "viewDiv",
    map: map,
    center: [0, 30],
    zoom: 3
});